home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DTP
/
DTP_TEX
/
3239.ZIP
/
DVIMTP.ZIP
/
GETBMAP.H
< prev
next >
Wrap
Text File
|
1987-10-29
|
975b
|
36 lines
/* -*-C-*- getbmap.h */
/*-->getbmap*/
/**********************************************************************/
/****************************** getbmap *******************************/
/**********************************************************************/
void
getbmap() /* allocate bitmap array */
{
#if SEGMEM
register UNSIGN16 y;
if (bitmap[0] == (UNSIGN32*)NULL)
{
for (y = 0; y < (UNSIGN16)YBIT; ++y)
{
bitmap[y] = (UNSIGN32*)MALLOC( (unsigned)((XBIT) * \
sizeof(UNSIGN32)) );
if (bitmap[y] == (UNSIGN32*)NULL)
(void)fatal(
"getbmap(): Cannot allocate space for page image bitmap");
}
}
#else /* NOT SEGMEM */
if (bitmap == (UNSIGN32*)NULL)
{
bitmap =
(UNSIGN32*)MALLOC(((UNSIGN32)(XBIT))*((UNSIGN32)(YBIT))*sizeof(UNSIGN32));
if (bitmap == (UNSIGN32*)NULL)
(void)fatal(
"getbmap(): Cannot allocate space for page image bitmap");
}
#endif /* SEGMEM */
}